﻿<%@ Page Title="Datos Colaborador" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="ColaboradorLista.aspx.cs" Inherits="Gui.Web.Listado.ColaboradorLista" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="container">
        <div class="row">
            <div class="area-top clearfix">
                <div class="pull-left header">
                    <h3 class="title">
                        <i class="icon-dashboard"></i>Colaborador
                    </h3>
                    <h5>
                        <span>Informaci&oacute;n de los colaboradores </span>
                    </h5>
                </div>
            </div>
        </div>
    </div>
    <div class="container padded">
        <div class="row">
            <div class="col-md-12">
                <button type="submit" class="btn btn-blue" id="NuevoColaborador" runat="server" onserverclick="NuevoColaborador_Click">
                    <i class="icon-user"></i>&nbsp;&nbsp;Nuevo colaborador</button>
                <br />
                <br />
                <div class="box">
                    <div class="box-header">
                        <span class="title">Listado de colaboradores</span>
                    </div>
                    <div class="box-content">
                        <asp:GridView ID="ListadoColaboradores" class="table table-bordered table-striped responsive"
                            runat="server" AutoGenerateColumns="False" DataKeyNames="IdColaborador" 
                            onrowcommand="ListadoColaboradores_RowCommand">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate >
                                        <asp:linkbutton id="Editar" class="btn btn-xs btn-default" runat="server" text="Editar" commandname="Editar" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                        <asp:linkbutton id="Eliminar" class="btn btn-xs btn-red" runat="server" text="Eliminar" commandname="Eliminar" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="IdColaborador" HeaderText="IdColaborador" Visible="False" />
                                <asp:BoundField DataField="Nombres" HeaderText="Nombres" />
                                <asp:BoundField DataField="Apellidos" HeaderText="Apellidos" />
                                <asp:BoundField DataField="DocumentoIdentidad" HeaderText="Documento" />
                                <asp:BoundField DataField="TipoDocumento" HeaderText="Tipo" />
                                <asp:BoundField DataField="Telefono" HeaderText="Telefono" />
                                <asp:BoundField DataField="Domicilio" HeaderText="Domicilio" Visible="False" />
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
